﻿using System.Collections.Generic;
using Data.Common;
using Data.Model;

namespace DataAccess.SystemManage
{
    public interface ISysPrivilege
    {
        ResultInfo<Privilege> GetPrivilege(int priid);
        ResultInfo<PagingDataSet<Privilege>> GetPrivileges(int pageIndex, int pageSize, string priviName);
        ResultInfo<int> CreateUpdatePrivilege(Privilege privilege);
        ResultInfo<bool> DeletePrivilege(int id);
        ResultInfo<Dictionary<string, string>> GetAllKeyResources();
        ResultInfo<Dictionary<string, string>> GetPriviKeyResources(int priviid);
    }
}
